package com.cljz.peipei.model.net.bean;

import cn.droidlover.xdroidmvp.net.IModel;

/**
 * Created by apple on 2017/4/18.
 */

public class LoginBean implements IModel {

    /**
     * code : 0
     * msg : 登录成功
     * data : {"token":"MDAwMDAwMDAwMK-3ctqBfMrHgLWGra2g0dOAoXzcsYatyoCGtW5_h46RsN2G3YKJo54","nickname":"132****1252","sex":0,"birthday":"0000-00-00","is_new":0,"download":"下载地址"}
     */

    private String code;
    private String msg;
    private DataBean data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    @Override
    public boolean isNull() {
        return false;
    }

    @Override
    public boolean isAuthError() {
        return false;
    }

    @Override
    public boolean isBizError() {
        return false;
    }

    @Override
    public String getErrorMsg() {
        return null;
    }

    public static class DataBean {


        /**
         * token : MDAwMDAwMDAwMK-3ctqBfMrHgLWGra2g0dOAoXzcsYatyoCGtW5_h46RsN2G3YKJo54
         * nickname : 132****1252
         * sex : 0
         * birthday : 0000-00-00
         * is_new : 0
         * download : 下载地址
         */
        private String user_id;
        private String token;
        private String nickname;
        private String sex;
        private String birthday;
        private String is_new;
        private String download;

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getIs_new() {
            return is_new;
        }

        public void setIs_new(String is_new) {
            this.is_new = is_new;
        }

        public String getDownload() {
            return download;
        }

        public void setDownload(String download) {
            this.download = download;
        }
    }
}
